package Demo;

import java.security.PrivateKey;

public class Consumer implements Runnable{
    public Consumer(Goods goods) {
        this.goods = goods;
    }

    private Goods goods;
    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            goods.get();
        }
    }
}
